package com.ruicar.afs.cloud.manage.api.feign.applyfeign;

import com.ruicar.afs.cloud.common.core.util.IResponse;
import com.ruicar.afs.cloud.manage.api.dto.SmallprogramDto;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestHeader;

import java.util.Map;

/**
 * @Author chuke
 * @create 2020/9/23 15:11
 */
@FeignClient(name = "ApplySmallprogramFeign",url = "${com.greatwall.services.apply-service.url}")
public interface ApplySmallprogramFeign {

    /**
     * 二维码数据传给进件
     */
    @ApiOperation(value = "二维码数据传给进件")
    @PostMapping(value = "/smallprogram/getContractRedisInfo")
    IResponse getSmallprogramInfo(@RequestBody SmallprogramDto dto, @RequestHeader Map<String, String> heards);

}
